CFLAG = -std=c++11 -I ../../../build/release-install-cpp11/include/
LFLAG = -L ../../../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -ljsoncpp

all:server public_client subscribe_client

server:server.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

public_client:public_client.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

subscribe_client:subscribe_client.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY: clean
clean:
	rm -f server public_client subscribe_client *.log